package com.uphone.kingmall.bean;

import java.util.List;

/**
 * <pre>
 *     author : radish
 *     e-mail : 15703379121@163.com
 *     time   : 2019/3/20
 *     desc   :
 * </pre>
 */
public class SettleCartBean {

    /**
     * msg : ok
     * code : 0
     * totalFee : 6632
     * shopGoods : [{"shopId":1,"shopName":"测试店铺","postFee":1,"yueDeductFee":0,"sumGoodsFee":124,"goods":[{"shopCarId":8,"goodsId":1,"goodsPropId":"1","goodsSpec":"300 ","goodsPerFee":124,"goodsNum":1,"goodsName":"优质商品","goodsMainImg":"http://localhost:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg","goodsState":1}],"scoreDeductFee":0},{"shopId":11,"shopName":"华为官方旗舰店","postFee":0,"yueDeductFee":0,"sumGoodsFee":6507,"goods":[{"shopCarId":7,"goodsId":27,"goodsPropId":"26","goodsSpec":"100 ","goodsPerFee":3899,"goodsNum":1,"goodsName":"Apple iPhone X","goodsMainImg":"http://localhost:8082/upload/images/goods/14d459c172ba48a791739d4ef939098d.jpg","goodsState":1},{"shopCarId":9,"goodsId":28,"goodsPropId":"27","goodsSpec":"100 ","goodsPerFee":2608,"goodsNum":1,"goodsName":"OPPO R15X","goodsMainImg":"http://localhost:8082/upload/images/goods/0988638285364f00bfc0956eea7cb5b8.jpg","goodsState":1}],"scoreDeductFee":0}]
     */

    private String msg;
    private int code; // 为41时是立即购买  0时是购物车结算
    private double totalFee;
    private List<ShopGoodsBean> shopGoods;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public double getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(double totalFee) {
        this.totalFee = totalFee;
    }

    public List<ShopGoodsBean> getShopGoods() {
        return shopGoods;
    }

    public void setShopGoods(List<ShopGoodsBean> shopGoods) {
        this.shopGoods = shopGoods;
    }

    public static class ShopGoodsBean {
        /**
         * shopId : 1
         * shopName : 测试店铺
         * postFee : 1
         * yueDeductFee : 0
         * sumGoodsFee : 124
         * goods : [{"shopCarId":8,"goodsId":1,"goodsPropId":"1","goodsSpec":"300 ","goodsPerFee":124,"goodsNum":1,"goodsName":"优质商品","goodsMainImg":"http://localhost:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg","goodsState":1}]
         * scoreDeductFee : 0
         */

        private int shopId;
        private String shopName;
        private double postFee;
        private double yueDeductFee;
        private double sumGoodsFee;
        private double scoreDeductFee;
        private List<GoodsBean> goods;
        private boolean isYueFeeSelect = false;
        private boolean isScoreFeeSelect = false;
        private double scoreRealFee;
        private boolean isPost = true;
        private String remark = "";
        private int installationType;
        private int postType = 1;
        private double installationFee;

        public double getInstallationFee() {
            return installationFee;
        }

        public void setInstallationFee(double installationFee) {
            this.installationFee = installationFee;
        }

        public int getInstallationType() {
            return installationType;
        }

        public void setInstallationType(int installationType) {
            this.installationType = installationType;
        }

        public int getPostType() {
            return postType;
        }

        public void setPostType(int postType) {
            this.postType = postType;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        private ShopGoodsBean.GoodsBean goodsInfo;

        public ShopGoodsBean.GoodsBean getGoodsInfo() {
            return goodsInfo;
        }

        public void setGoodsInfo(ShopGoodsBean.GoodsBean goodsInfo) {
            this.goodsInfo = goodsInfo;
        }

        public double getScoreRealFee() {
            return scoreRealFee;
        }

        public void setScoreRealFee(double scoreRealFee) {
            this.scoreRealFee = scoreRealFee;
        }

        public boolean isPost() {
            return isPost;
        }

        public void setPost(boolean post) {
            isPost = post;
        }

        public boolean isYueFeeSelect() {
            return isYueFeeSelect;
        }

        public void setYueFeeSelect(boolean yueFeeSelect) {
            isYueFeeSelect = yueFeeSelect;
        }

        public boolean isScoreFeeSelect() {
            return isScoreFeeSelect;
        }

        public void setScoreFeeSelect(boolean scoreFeeSelect) {
            isScoreFeeSelect = scoreFeeSelect;
        }

        public int getShopId() {
            return shopId;
        }

        public void setShopId(int shopId) {
            this.shopId = shopId;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public double getPostFee() {
            return postFee;
        }

        public void setPostFee(double postFee) {
            this.postFee = postFee;
        }

        public double getYueDeductFee() {
            return yueDeductFee;
        }

        public void setYueDeductFee(double yueDeductFee) {
            this.yueDeductFee = yueDeductFee;
        }

        public double getSumGoodsFee() {
            return sumGoodsFee;
        }

        public void setSumGoodsFee(double sumGoodsFee) {
            this.sumGoodsFee = sumGoodsFee;
        }

        public double getScoreDeductFee() {
            return scoreDeductFee;
        }

        public void setScoreDeductFee(double scoreDeductFee) {
            this.scoreDeductFee = scoreDeductFee;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class GoodsBean {
            /**
             * shopCarId : 8
             * goodsId : 1
             * goodsPropId : 1
             * goodsSpec : 300
             * goodsPerFee : 124
             * goodsNum : 1
             * goodsName : 优质商品
             * goodsMainImg : http://localhost:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg
             * goodsState : 1
             */

            private int shopCarId;
            private int goodsId;
            private String goodsPropId;
            private String goodsSpec;
            private double goodsPerFee;
            private int goodsNum;
            private String goodsName;
            private String goodsMainImg;
            private int goodsState;

            public int getShopCarId() {
                return shopCarId;
            }

            public void setShopCarId(int shopCarId) {
                this.shopCarId = shopCarId;
            }

            public int getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(int goodsId) {
                this.goodsId = goodsId;
            }

            public String getGoodsPropId() {
                return goodsPropId;
            }

            public void setGoodsPropId(String goodsPropId) {
                this.goodsPropId = goodsPropId;
            }

            public String getGoodsSpec() {
                return goodsSpec;
            }

            public void setGoodsSpec(String goodsSpec) {
                this.goodsSpec = goodsSpec;
            }

            public double getGoodsPerFee() {
                return goodsPerFee;
            }

            public void setGoodsPerFee(double goodsPerFee) {
                this.goodsPerFee = goodsPerFee;
            }

            public int getGoodsNum() {
                return goodsNum;
            }

            public void setGoodsNum(int goodsNum) {
                this.goodsNum = goodsNum;
            }

            public String getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(String goodsName) {
                this.goodsName = goodsName;
            }

            public String getGoodsMainImg() {
                return goodsMainImg;
            }

            public void setGoodsMainImg(String goodsMainImg) {
                this.goodsMainImg = goodsMainImg;
            }

            public int getGoodsState() {
                return goodsState;
            }

            public void setGoodsState(int goodsState) {
                this.goodsState = goodsState;
            }
        }
    }
}
